﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web;
using SilverPOP.Library.BusinessEntities;

namespace SilverPOP.Library.Helpers
{
    public class SessionManager
    {
        
        public static SilverPopAccount  SilverPopAccount
        {
            get
            {
                try
                {
                    if (HttpContext.Current.Session["SilverPopAccount"] != null)
                        return HttpContext.Current.Session["SilverPopAccount"] as SilverPopAccount;
                    else
                        return null;
                }
                catch
                {
                    return null;
                }
            }
            set
            {
                HttpContext.Current.Session["SilverPopAccount"] = value;
            }
        }

    }//end class
}
